/**
 * 
 */
package com.bitBusy.manageyourriches.utilityClasses.datastructures;

import android.content.Context;
import android.widget.ExpandableListView;

/**
 * Class that is a custom expandable list
 * @author SumaHarsha
 *
 */
public class CustomExpandableList extends ExpandableListView{

	public CustomExpandableList(Context context)
	{
		super(context);
	}
	/**
	 * Constructor
	 * @param context
	 */
	public CustomExpandableList(Context context, int the_width, int the_heightMeasure) {
		super(context);
		WIDTH = the_width;
		HEIGHT = the_heightMeasure * 500;
	}
	/**Width to be set*/
	private static int WIDTH;
	
	/**Height to be set*/
	private static int HEIGHT ;

		
	
      
	/** Method to make group visible on collapse*/
        protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
               widthMeasureSpec = MeasureSpec.makeMeasureSpec(WIDTH,
                            MeasureSpec.AT_MOST);
               heightMeasureSpec = MeasureSpec.makeMeasureSpec(HEIGHT,
                            MeasureSpec.AT_MOST);
               super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        }
 }

	

